package com.example.lenovo.appstore.activity;

import androidx.appcompat.app.AppCompatActivity;
import butterknife.Bind;
import butterknife.ButterKnife;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.example.lenovo.appstore.R;
import com.example.lenovo.appstore.base.BaseActivity;
import com.example.lenovo.appstore.utils.AppContext;
import com.example.lenovo.appstore.utils.StatusBarUtil;
import com.example.lenovo.appstore.view.TitleBarView;

public class SettingActivity extends BaseActivity implements View.OnClickListener {
    @Bind(R.id.setting_title)
    TitleBarView setting_title;


    @Bind(R.id.save_center)
    RelativeLayout sava_center;//安全中心
    @Bind(R.id.version)
    RelativeLayout version;//版本

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        ButterKnife.bind(this);
        initView();
    }

    @Override
    protected void initView() {
        setting_title.setTitle(AppContext.getInstance().getResources().getString(R.string.Setup));
        setting_title.showBackButton(true);
        StatusBarUtil.setStatusBarLightMode(getWindow());
        initListener();
    }

    @Override
    protected void initListener() {
        sava_center.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.save_center:
                Intent intent=new Intent(SettingActivity.this,SaveCenterActivity.class);
                startActivity(intent);
                break;
        }
    }
}
